<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js"></script>
	</head>
	<body>

		<div id="app">
			<input type="text" v-model.number="data" />
			<p>{{ data | trimPlus }}</p>
		</div>

		<script>
			var app = new Vue({
				el: "#app",
				data: {
					data:''
				},
				filters: {
					trimPlus(value){
						return value.split(' ').join('')
					}
				}
	
			})
		</script>
	</body>
</html>
